﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="EditPersonalProject.aspx.cs"
    Inherits="LabMS.Web.PersonalProjectManagement.EditPersonalProject" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>实验室开放申请表</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript" src="../../js/Calendar5.js"></script>

    <script type="text/javascript">
        var d = new Calendar("d");
        document.write(d);
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        <a href="ListPersonalProject.aspx">学生自拟开放实验申请列表</a></label>&gt;审核学生自拟开放实验申请
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <asp:Button ID="btnApprove" runat="server" OnClick="btnApprove_Click" Text="审批[通过]" />
                <asp:Button ID="btnUnApprove" runat="server" OnClick="btnUnapprove_Click" Text="审批[不通过]" />
                <asp:Button ID="btnDel" CssClass="button" runat="server" Text="删除" OnClick="Button2_Click" />
                <input id="btnReturn" class="button" type="button" onclick="javascript:window.location.href='ListPersonalProject.aspx';"
                    value="返回" />
            </p>
            <table cellpadding="2" cellspacing="0" border="0">
                <tr>
                    <td><label class="itemTitle">
                        项目名称：</label>
                    </td>
                    <td>
                        <asp:Label ID="ProjectName" runat="server"></asp:Label>
                    </td>
                    <td><label class="itemTitle">
                        计划学时：</label>
                    </td>
                    <td>
                        <asp:Label ID="PlanHours" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label class="itemTitle">
                        申请实验室：</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlApplyLab" Enabled="false" DataTextField="Lab_Name" DataValueField="ID"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td><label class="itemTitle">
                        申请时间：</label>
                    </td>
                    <td>
                        <asp:Label ID="ApplyTimeMin" runat="server"></asp:Label>--<asp:Label ID="ApplyTimeMax"
                            runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label class="itemTitle">
                        学期：</label>
                    </td>
                    <td>
                        <asp:Label ID="lbSTime" runat="server"></asp:Label>
                    </td>
                    <td><label class="itemTitle">
                        状态：</label>
                    </td>
                    <td>
                        <asp:Label ID="lbStatus" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td valign="top"><label class="itemTitle">
                        申请人：</label>
                    </td>
                    <td>
                        <asp:GridView ID="gvApplicant" runat="server" AutoGenerateColumns="false" CssClass="infoTable">
                            <Columns>
                                <asp:BoundField HeaderText="学号" DataField="Student_Code" />
                                <asp:BoundField HeaderText="姓名 " DataField="Student_Name" />
                                <asp:BoundField HeaderText="班级" DataField="Class_Name" />
                                <asp:BoundField HeaderText="专业" DataField="Pro_Name" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td><label class="itemTitle">
                        联系人：</label>
                    </td>
                    <td>
                        <asp:Label ID="Contactor" runat="server"></asp:Label>
                    </td>
                    <td><label class="itemTitle">
                        班级：</label>
                    </td>
                    <td>
                        <asp:Label ID="ContactorClass" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label class="itemTitle">
                        联系电话：</label>
                    </td>
                    <td>
                        <asp:Label ID="ContactPhone" runat="server"></asp:Label>
                    </td>
                    <td><label class="itemTitle">
                        E-Mail：</label>
                    </td>
                    <td>
                        <asp:Label ID="ContactEmail" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label class="itemTitle">
                        指导老师：</label>
                    </td>
                    <td>
                        <asp:Label ID="Teacher" runat="server"></asp:Label>
                    </td>
                    <td><label class="itemTitle">
                        职称：</label>
                    </td>
                    <td>
                        <asp:Label ID="TeacherTitle" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label class="itemTitle">
                        联系电话：</label>
                    </td>
                    <td>
                        <asp:Label ID="TeacherPhone" runat="server"></asp:Label>
                    </td>
                    <td><label class="itemTitle">
                        E-Mail：</label>
                    </td>
                    <td>
                        <asp:Label ID="TeacherEmail" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td valign="top"><label class="itemTitle">
                        所需仪器：</label>
                    </td>
                    <td>
                        <asp:GridView ID="gvEquip" runat="server" AutoGenerateColumns="false" CssClass="infoTable">
                            <Columns>
                                <asp:BoundField HeaderText="名称" DataField="EquipName" />
                                <asp:BoundField HeaderText="数量 " DataField="EquipNum" />
                                <asp:BoundField HeaderText="备注" DataField="Introduction" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td valign="top"><label class="itemTitle">
                        所需低耗品：</label>
                    </td>
                    <td>
                        <asp:GridView ID="gvLowConsumption" runat="server" AutoGenerateColumns="false" CssClass="infoTable">
                            <Columns>
                                <asp:BoundField HeaderText="名称" DataField="EquipName" />
                                <asp:BoundField HeaderText="数量 " DataField="EquipNum" />
                                <asp:BoundField HeaderText="备注" DataField="Introduction" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td valign="top"><label class="itemTitle">
                        申请理由：</label>
                    </td>
                    <td>
                        <asp:Label ID="ApplyReason" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <table cellpadding="2" cellspacing="0" border="0">
                <tr>
                    <td valign="top"><label class="itemTitle">
                        审批意见：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="Opinion" TextMode="MultiLine" Rows="8" Columns="50" runat="server" MaxLength="250"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td><label class="itemTitle">
                        实验时间：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="LabDate" runat="server"></asp:TextBox>
                        <asp:TextBox ID="LabStartTimeHour" Width="30" runat="server"></asp:TextBox>：<asp:TextBox ID="LabStartTimeMinute" Width="30"
                            runat="server"></asp:TextBox>--<asp:TextBox ID="LabEndTimeHour" Width="30" runat="server"></asp:TextBox>：<asp:TextBox ID="LabEndTimeMinute" Width="30"
                            runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td><label class="itemTitle">
                        实验地点：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlLocation" DataTextField="Location_Name" DataValueField="ID"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        </div>
        <asp:Label ID="lbErr" runat="server" ForeColor="Red" Text="Err" Visible="False"></asp:Label>
        
        <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

        <script type="text/javascript" src="../js/jQuery/jquery.validate.js"></script>

        <script type="text/javascript">
        $(document).ready(function(){
            $("#form1").validate({
                rules: {
                    Opinion:{
                        required:true
                    }
                },
                messages: {
                    Opinion:{
                        required:"请输入审批意见"
                    }
               }
            });
        });
        </script>
    </form>
</body>
</html>
